//
// Created by Biter on 2019/10/21.
//

#ifndef NDK_MYTIME_H
#define NDK_MYTIME_H

#include <iostream>

using namespace std;

class Time {
private:
    int hours;
    int minutes;
public:
    Time();

    Time(Time &time);

    Time(int h, int m = 0);

    void addMin(int m);

    void addHr(int h);

    Time sum(const Time &t) const;

    void show() const;

    void reset(int h = 0, int m = 0);

    Time operator+(const Time &time);

    friend Time operator*(double m, const Time &t);

    ~Time();

};

#endif //NDK_MYTIME_H
